import { BrowserRouter, Redirect, Switch } from 'react-router-dom';

// import { routes } from './router/meeting';
import RouterView, { routes } from './router';

import './App.css';

function App() {
    return (
        <BrowserRouter>
            {/* Switch 匹配到符合条件的路由就不再往下匹配了 */}
            <Switch>
                <Redirect exact path="/" to="/admin/dashboard" />
                {/* <Redirect exact path="/" to="/login" />
                <Route path="/login" component={Login} />
                <PrivateRoute path="/" component={Layout} /> */}
                <RouterView routes={routes} />
            </Switch>
        </BrowserRouter>
    );
}

export default App;
